package com.sky.mapper;

import com.sky.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailsMapper {
    /**
     * 批量插入订单1详情
     * @param listOrderDetail
     */
    void insertBeach(List<OrderDetail> listOrderDetail);

    /**
     * 根据订单ID查询订单明细ID
     * @param orderId
     */
    @Select("select * from order_detail where order_id = #{orderId} ")
    List<OrderDetail> getByOrderId(Long orderId);
}
